import os
from BeautifulReport import BeautifulReport
import allure

import unittest
import pytest
if __name__ == '__main__':
    # pytest:
    # allure报告
    pytest.main(['-s',r'D:\Gao6\Auto_Wms\wdds\test_case.py','--alluredir=.aa'])
    os.system(f'allure generate .aa -o report')
    # pytest _html报告
    # pytest.main(['-s',f'D:\pythonProject71\weidu\Case\Case.py','--html=./reporta.html'])
    # unittest:
    # suite=unittest.TestLoader().discover(start_dir='.',pattern='Case.py')
    # BeautifulReport(suite).report(description='./',filename='login.html')
    # fp=r'D:\pythonProject71\weidu\raa.html'
    # wr=open(fp,'wb')
    # renner=HTMLTestRunner_cn.HTMLTestRunner(stream=wr,title='测试报告',description='Report')
    # renner.run(suite)

